package com.weipai.springboot.module.service;

import com.weipai.springboot.model.CustomerAddress;
import com.weipai.springboot.model.CustomerBank;
import com.weipai.springboot.model.CustomerInvoice;
import com.weipai.springboot.model.api.Response;

/**
 * @Author: 曹朋飞
 * @Date: 2018/08/23 17:49
 */
public interface CenterService {

    //获取用户的收货地址
    Response getAddressByCustomerId(String id);

    //获取收货地址详细信息
    Response getAddressInfoById(String id);

    //新增收货地址
    Response saveAddress(CustomerAddress address);

    //删除收货地址
    Response deleteAddressById(String id);

    //新增银行卡
    Response saveBank(CustomerBank customerBank, String newCode, String oldCode);

    //获取用户的银行卡
    Response getBankByCustomerId(String id);

    //删除银行卡
    Response deleteBankById(String id);

    //绑定支付宝账号
    Response bindingAlipayAccount(String alipayAccount, String realName);

    //修改收货地址
    Response updateAddress(CustomerAddress address);

    //新增发票
    Response saveInvoice(CustomerInvoice customerInvoice);

    //修改发票
    Response updateInvoice(CustomerInvoice customerInvoice);

    //获取用户的发票
    Response invoiceList(String customerId);

    //删除发票信息
    Response deleteInvoiceById(String id);

    //获取支付宝账号详细信息
    Response getAlipayAccountCustomerId();

    //设置地址为默认收货地址
    Response isDefaultAddress(String id);

    Response getCenterById(String customerId);

    Response getBankBybankCard(String bankCard);
}
